<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Community extends Model
{
    use HasFactory;
    protected $table = 'community';

    public function goods()
    {
        return $this->hasMany(CommunityGoods::class,'community_id','id');
    }
}
